package com.ytjj.qmyx.mall.model.response;

import com.fasterxml.jackson.annotation.JsonAlias;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

/**
 *
 *  *
 **/
@Data
public class HomePageProductResponse implements Serializable {

    @JsonAlias("id")
    private Integer id;

    @JsonAlias("product_no")
    private String productNo;

    @JsonAlias("product_name")
    private String productName;

    @JsonAlias("product_img")
    private String productImg;

    @JsonAlias("scene_img")
    private String sceneImg;

    @JsonAlias("price")
    private BigDecimal price;

    @JsonAlias("original_price")
    private BigDecimal originalPrice;

    @JsonAlias("cur_price")
    private BigDecimal curPrice;

    @JsonAlias("stock")
    private Integer stock;

    @JsonAlias("volume")
    private Integer volume;

    @JsonAlias("volume_str")
    private String volumeStr;

    @JsonAlias("create_time")
    private Date createTime;

    @JsonAlias("activity_type")
    private String activityType;

    @JsonAlias("is_zero_product")
    private Integer isZeroProduct;

    @JsonAlias("product_type")
    private Integer productType;

    @JsonAlias("good_ratio")
    private Integer goodRatio = 99;

    @JsonAlias("sort")
    private Integer sort;

    @JsonAlias("activity_max")
    private BigDecimal activityMax;

    @JsonAlias("activity_min")
    private BigDecimal activity_min;

    @JsonAlias("extra")
    private String extra;

//    @JsonAlias("rec_img_flag")
//    private Integer recImgFlag;
}
